package com.zy.kotlinbaselibrary.base.bean

import com.zy.kotlinbaselibrary.rx.Optional

open class BaseEntity<T>{
     var code: Int = -1

     var msg: String? = null

     var data: T? = null

     fun transform(): Optional<T> {

          return Optional(data)
     }

     override fun toString(): String {
          return "BaseEntity(code=$code, msg=$msg, data=$data)"
     }


}